import Mock from 'mockjs'

export function getAllCompony() {
  return Mock.mock({
    code: '000000',
    message: 'success',
    'data|5-19': [
      {
        companyId: '@id',
        companyName: '商户00@integer(1,100)',
        apiCode: 'apicode@natural()'
      }
    ]
  })
}

export function getFieldTypes() {
  return {
    code: '000000',
    data: {
      variableType: [
        { name: '外呼明细模板', value: 1 },
        { name: '通用业务模板', value: 2 },
        { name: '自定义字段模板', value: 3 },
        { name: '案件上传必填模板', value: 5 },
        { name: '系统字段', value: 6 }
      ],
      infoStatus: [
        { name: '可执行', value: 0 },
        { name: '不可执行', value: 1 }
      ],
      casePool: [
        { name: '机器人', value: 1 },
        { name: '待分池', value: 5 },
        { name: '结案', value: 4 }
      ]
    },
    message: '成功'
  }
}
